-- GENERATED SPELL FOR [Stormpike Ram Rider Commander] --


function spell0_13577(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13577', 572, 1)
end

function spell1_13577(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13577', 5321, 1)
end

function Sorts_13577(pUnit, Event)
local choix_sorts_13577 = math.random(0, 1)
if choix_sorts_13577 == 0 then
pUnit:RegisterEvent('spell0_13577', 1, 1)
end
if choix_sorts_13577 == 1 then
pUnit:RegisterEvent('spell1_13577', 1, 1)
end
end

function mob13577_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13577', math.random(1500, 3000), 1)
end

function mob13577_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13577_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13577_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13577, 1, 'mob13577_Action')
RegisterUnitEvent(13577, 2, 'mob13577_Leave')
RegisterUnitEvent(13577, 3, 'mob13577_Kill')
RegisterUnitEvent(13577, 4, 'mob13577_Die')
